package com.leimo.demo;

import com.leimo.demo.service.DemoService;
import org.apache.log4j.Logger;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Consumer {

  private static Logger logger = Logger.getLogger(Consumer.class);

  public static void main(String[] args) {
    ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
        "classpath:spring/consumer.xml");
    context.start();
    DemoService demoService = context.getBean(DemoService.class);
//    String world = demoService.sayHello("world");
    String s = demoService.sayHello("Abc");
    logger.warn(s);
  }

  public void urlTest() {
//    dubbo://172.16.1.78:20880/com.leimo.demo.DemoService
  }
}
